<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>结果页面</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
</head>
<body>
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">约数计算器</a>
        </div>
</nav>
<div class="container">
    <div class="row">
        <h3>结果页面（本次耗时：<%= during %>）</h3>
        <p>
            数字<%= number %>>的因数如下：
        </p>
        <ul>
            <%
            for (var i = 0; i < resultsArr.length;i++){
            %>
            <li><%= resultsArr[i] %>></li>
            <%
            }
            %>
        </ul>
    </div>
</div>
<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
<script type="text/javascript">
    $("#btn").click(function () {
        //查询按钮是一个跳转按钮
        var number = $("#numbertxt").val();
        window.location = "/" + number;
    });
</script>
</body>
</html>